package com.maila.xiaoaobusiness.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.Switch;
import android.widget.TextView;

import com.maila.xiaoaobusiness.R;
import com.maila.xiaoaobusiness.utils.StartActivityUtils;
import com.zhy.autolayout.AutoLinearLayout;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 下单返券
 * Created by mark on 2017/11/29.
 */

public class GiveCouponsActivity extends AppCompatActivity {
    @BindView(R.id.white_return_iv)
    AutoRelativeLayout whiteReturnIv;
    @BindView(R.id.rl_title)
    AutoRelativeLayout rlTitle;
    @BindView(R.id.tv_start_date)
    TextView tvStartDate;
    @BindView(R.id.rl_start_date)
    AutoRelativeLayout rlStartDate;
    @BindView(R.id.tv_end_date)
    TextView tvEndDate;
    @BindView(R.id.rl_end_data)
    AutoRelativeLayout rlEndData;
    @BindView(R.id.tv_money)
    EditText tvMoney;
    @BindView(R.id.btn_add_coupons)
    TextView btnAddCoupons;
    @BindView(R.id.btn_delete_coupons)
    TextView btnDeleteCoupons;
    @BindView(R.id.btn_edit_coupons)
    TextView btnEditCoupons;
    @BindView(R.id.tv_coupons_money)
    TextView tvCouponsMoney;
    @BindView(R.id.tv_condition_one)
    TextView tvConditionOne;
    @BindView(R.id.tv_condition_two)
    TextView tvConditionTwo;
    @BindView(R.id.tv_agree)
    TextView tvAgree;
    @BindView(R.id.tv_rule)
    TextView tvRule;
    @BindView(R.id.sw_agree_rule)
    Switch swAgreeRule;
    @BindView(R.id.ll_coupons_info)
    AutoLinearLayout llCouponsInfo;
    @BindView(R.id.btn_save_time)
    TextView btnSaveTime;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_give_coupons);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.white_return_iv, R.id.rl_start_date, R.id.rl_end_data, R.id.btn_add_coupons, R.id.btn_delete_coupons, R.id.btn_edit_coupons, R.id.tv_rule, R.id.sw_agree_rule, R.id.btn_save_time})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.white_return_iv:
                finish();
                break;
            case R.id.rl_start_date:
                break;
            case R.id.rl_end_data:
                break;
            case R.id.btn_add_coupons:
                StartActivityUtils.start(this,CouponsActivity.class);
                break;
            case R.id.btn_delete_coupons:
                break;
            case R.id.btn_edit_coupons:
                StartActivityUtils.start(this,CouponsActivity.class);
                break;
            case R.id.tv_rule:
                break;
            case R.id.sw_agree_rule:
                break;
            case R.id.btn_save_time:
                break;
        }
    }
}
